<%- include header %>
<ul class="archive">
    <% var lastDay = 0 %>
    <% posts.forEach(function (post, index) { %>

    <% if (lastDay != post.time.day) { %>
    <li>
        <h3><%= post.time.day %></h3>
    </li>
    <% lastDay = post.time.day } %>

    <li>
        <time><%= post.time.day %></time>
    </li>

    <li>
        <a href="/u/<%= post.name %>/<% post.time.day %>/<%= post.title %>"><%= post.title %></a>
    </li>
    <% }) %>
</ul>
<%- include footer %>
